package com.am.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author : ArturiaMu KMUST-Stu
 * @Date : 2022/11/4 21:39
 * @Params : @param null
 * @Exception :
 * @Return :
 * @Description ：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Room {
    String name;
    boolean editMod;
    List<Canvas> canvas;

    public void addCanvas(Canvas canvas) {
        this.canvas.add(canvas);
    }

    public void delCanvas(Canvas canvas) {
        this.canvas.remove(canvas);
    }
}
